<template>
  <div id="app">
    <div>
      <router-link to="/index" active-class="active">首页</router-link>
      <router-link to="/about" active-class="active">关于</router-link>
      <router-link to="/user" active-class="active">我的</router-link>
    </div>
    <div>
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
export default {
  name: "App",
  components: {},
};
</script>

<style>
.active {
  color: red;
}
</style>
